package com.jsu.client;

import org.example.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(name = "wscc-service-activity",url = "http://localhost:8091")
public interface ActivityClient {
    /**
     * 用户点赞，
     * @param activityId
     * @return
     */
    @PutMapping("/activity/addActivityLikes")
    ResponseResult addActivityLikes(Integer activityId);

    @GetMapping("/activity/getRegistrationByActivityId")
    ResponseResult getRegistrationByActivityId(Integer activityId);
}
